package com.wen.mall.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 20212
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum {
    SUCCESS(0, "成功"),
    PASSWORD_ERROR(1, "密码错误"),
    USERNAME_EXISTS(2, "用户名已存在"),
    PARAM_ERROR(3, "参数错误"),
    EMAIL_EXISTS(4, "邮箱已存在"),
    NOT_LOGGED(10, "用户未登录,请先登录"),
    USER_PASSWORD_ERROR(11, "用户名或密码错误"),
    PRODUCT_OFF_SALE_DELETE(12, "该商品已下架或删除"),
    PRODUCT_NOT_EXIT(13, "商品不存在"),
    PRODUCT_STOCK_ERROR(14, "库存不正确"),

    ERROR(-1, "服务器端异常");

    Integer status;
    String msg;

}
